﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FCISPlus.Client.Communicator;

namespace FCISPlus.Client.UI
{
    public partial class NewPost : Form
    {
        private IFCISPlusClientCommunicator communicator;

        public NewPost(IFCISPlusClientCommunicator communicator)
        {
            this.communicator = communicator;
            InitializeComponent();
        }

        private void btnPost_Click(object sender, EventArgs e)
        {
            communicator.AddPost(this.txtPost.Text, "");
            MessageBox.Show("Posted");
            this.Close();
        }
    }
}
